//
//  MarkedInfo.h
//  FleaFinder
//
//  Created by Hieu Le on 4/10/13.
//  Copyright (c) 2013 Kiwiweb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Marked.h"
#import "MarketType.h"
#import "AppDelegate.h"


@interface MarkedInfo : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate>
{
    Marked *currentMarked;
    UIFont *font;
    UIFont *font12;
    UIFont *fontItalic;
    UIColor *commonColor;
    UIColor *violetColor;
        
    //NSString *linkToCategoryList;
    
    //NSMutableArray *categoryList;
    
    //MarketType *selectedMarketType;
    
    //Map* theMap;
    
    AppDelegate *appDelegate;
}

-(void) loadXmlData: (NSString*) sourceUrl forMarket:(int)marketId;
-(void) displayMarketInfo;

@property (weak, nonatomic) IBOutlet UILabel *lblMarkedName;
@property (weak, nonatomic) IBOutlet UILabel *lblMarkedType;
@property (weak, nonatomic) IBOutlet UILabel *lblDate;
@property (weak, nonatomic) IBOutlet UILabel *lblTime;
@property (weak, nonatomic) IBOutlet UILabel *lblStande;
@property (weak, nonatomic) IBOutlet UITextView *tvDesc;
@property (weak, nonatomic) IBOutlet UICollectionView *viewCategoryCollection;
@property (weak, nonatomic) IBOutlet UIButton *lblArranger;
@property (weak, nonatomic) IBOutlet UIButton *lblEmail;
@property (weak, nonatomic) IBOutlet UIButton *lblHomepage;
@property (weak, nonatomic) IBOutlet UIButton *lblPhone;
@property (weak, nonatomic) IBOutlet UIScrollView *scroller;
@property (weak, nonatomic) IBOutlet UILabel *lblRoad;
@property (weak, nonatomic) IBOutlet UILabel *lblCity;

@property (weak, nonatomic) IBOutlet UILabel *lblContactLabel;
@property (weak, nonatomic) IBOutlet UILabel *lblArrangorLabel;
@property (weak, nonatomic) IBOutlet UILabel *lblEmailLabel;
@property (weak, nonatomic) IBOutlet UILabel *lblHomepageLabel;
@property (weak, nonatomic) IBOutlet UILabel *lblPhoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *lblFindOsHerLabel;

@property (weak, nonatomic) IBOutlet UIButton *imgFacebook;
@property (weak, nonatomic) IBOutlet UIButton *imgTweeter;

//@property NSMutableArray* categoryList;
//@property MarketType* selectedMarketType;

-(IBAction)showFacebook:(id)sender;
-(IBAction)showTweeter:(id)sender;
//-(IBAction)showOnMap:(id)sender;
- (IBAction)sendEmail:(id)sender;
- (IBAction)visitHomepage:(id)sender;
- (IBAction)callContact:(id)sender;

@end
